Forum Activity for @michael

michael
@michael
03/13/19 08:43:28PM
7,816 posts

New Custom Account Tab


Jamroom Developers

The docblock for jrCore_form_get_saved_data() reads:
Get all posted data that can be saved to the Data Store for a module
 * @param string $module Module that has registered a designer form view
 * @param string $view View to get form fields for
 * @param array $_data $_REQUEST data to parse (default is $_post)
 * @return mixed
 */

It takes $_post and cleans out everything that is not going to be able to be stored in your modules datastore.

So that means everything that does not have the prefix of your modules datastore.

so you need to check the names of your form field line up with what is going into your datastore.

eg: if in your modules schema.php file you have:
    jrCore_db_create_datastore('myCustomModule', 'report');

then your form fields in your 'settings' form would need to look like this:
    // report_id
    $_tmp = array(
        'name'  => 'report_id',
        'type'  => 'hidden',
        'value' => $_report['_item_id']
    );
    jrCore_form_field_create($_tmp);


    // Report body
    $_tmp = array(
        'name'     => 'report_body',
        'label'    => 'Report',
        'help'     => 'Enter any report body into this area',
        'type'     => 'textarea',
        'validate' => 'printable',
        'required' => true
    );
    jrCore_form_field_create($_tmp);
.....

The 'name' lines up with what datastore value the input value will be stored on.
michael
@michael
03/13/19 05:29:18PM
7,816 posts

Images Not Found!!


Using Jamroom

run the INTEGRITY CHECK again with all the check boxes checked. log out, then back in again see if its still happening.

If it is, send me your login details to support at jamroom dot net and i'll see if i can see whats up.
michael
@michael
03/13/19 05:18:46PM
7,816 posts

Images Not Found!!


Using Jamroom

Where are you seeing "No image file can be found" ? is that on the upload form or where you're expecting to see it on the site after upload.

Is it a gallery image, or a different upload method?
michael
@michael
03/13/19 04:52:51PM
7,816 posts

New Custom Account Tab


Jamroom Developers

Also if you're trying to use the jrCore_db_update_item() function then make sure you're only doing so AFTER you've used the jrCore_db_create_item() function.

And only pass in arrays that begin with the name of the datastore. ie
'profile_????'

if you're trying to put it into the profile datastore.
michael
@michael
03/13/19 04:50:00PM
7,816 posts

New Custom Account Tab


Jamroom Developers

if you put
fdebug($_data)
and you got that array that includes 'profile_id' then to use that you use
$_data['profile_id']

I like this structure for fdebug()
$_debug = array(
'WHAT' => 'Im trying to figure out what i have in this location',
'$_data' => $_data,
);
fdebug($_debug);

So instead of just some variables, I also get a message that I set so I know why I wanted it.
michael
@michael
03/10/19 04:51:11PM
7,816 posts

site no longer sending important emails (beta issue?)


Using Jamroom

That's a hard structure for me to setup to test. If you could narrow it down to a reproducible structure, I could try to setup here to debug the situation to see if its something wrong in the code that's causing it.
michael
@michael
03/10/19 03:17:37PM
7,816 posts

site no longer sending important emails (beta issue?)


Using Jamroom

Whatever that error message is, its not related to "site no longer sending important emails (beta issue?)"

How are you testing to see if the email system is working?
michael
@michael
03/09/19 08:59:14PM
7,816 posts

site no longer sending important emails (beta issue?)


Using Jamroom

recursive module trigger means you have a jrCore_list inside another jrCore_list that each rely on the other. Check for looped calls
michael
@michael
03/09/19 08:57:20PM
7,816 posts

Module - offer/search services or products


Using Jamroom

Like the services module that we use on jamroom.net to sell services?

eg:
https://www.jamroom.net/the-jamroom-network/serviceshop

MARKETPLACE: "Services Shop"
https://www.jamroom.net/the-jamroom-network/networkmarket/244/service-shop

Or develop one of your own if you dont need the sales part of it.

Once you have the basic module structure, you can use the Form Designer to add in any extra fields if you dont want to code it, then use jrCore_list to get all the inputted info.

Docs: "Using the Form Designer"
https://www.jamroom.net/the-jamroom-network/documentation/getting-started/1275/using-the-form-designer

Docs: "{jrCore_list}"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/89/jrcore-list
michael
@michael
03/09/19 08:33:28PM
7,816 posts

440Music Testing 6.X Multiple Question


Installation and Configuration

The module system in JR6 is superb. You can add a module that adds new functionality or that adjusts how other existing modules work, so there is no need anymore to change core modules. You just build a new module that tweaks the data.

check out these docs:

Docs: "Events and Listeners"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1011/events-and-listeners
  92